home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2002 May / SGI IRIX 6.5 Applications 2002 May.iso / dist / extras / netscape_lite.idb / usr / bin / X11 / onetscape.z / onetscape
Text File  |  2001-12-20  |  2KB  |  53 lines

  1. #!/bin/sh
  2. #Tag 0x1064E
  3. #########################################################################
  4. #                                    #
  5. #    NETSCAPE startup utility                    #
  6. #    Copyright (c) 1997 by Netscape Communications Corporation    #
  7. #    Copyright (c) 1998-1999 by Silicon Graphics, Inc         #
  8. #                                    #
  9. #    File name:    netscape                    #
  10. #                                    #
  11. #    Version:    1.1                        #
  12. #                                    #
  13. #    Description:    This script starts up Communicator software    #
  14. #            on an SGI workstation.                 #
  15. #                                    #
  16. #    Usage:        To execute the script, type:            #
  17. #                                    #
  18. #                ./netscape [ args ]            #
  19. #                                    #
  20. #    Exit codes:    0    Successful completion            #
  21. #                                    #
  22. #    Author(s):    Brian Ostrom (briano@netscape.com)        #
  23. #            Victor Riley (var@sgi.com)            #
  24. #                                    #
  25. #    Notes:        * MOZILLA_HOME is /var/netscape/communicator    #
  26. #                                    #
  27. #########################################################################
  28. #
  29. PRODUCT="Communicator"
  30. MOZILLA_HOME=/var/netscape/communicator
  31. PATH=${MOZILLA_HOME}:${PATH}
  32. # change animation.dat to anim_cube.dat on the SGI_ANIM line
  33. # to restore the old spinning SGI cube animation
  34. SGI_ANIM="${SGI_ANIM:-"${MOZILLA_HOME}/animation.dat"}"
  35. export MOZILLA_HOME PATH SGI_ANIM
  36.  
  37. #
  38. # Is this a first time startup?  If so, create the .netscape dir
  39. # and put the default bookmark file in it.
  40. #
  41. if test ! -d ${HOME}/.netscape
  42. then
  43.     # New install, or upgrade from 0.x or 1.x.
  44.     mkdir ${HOME}/.netscape
  45.     if test -f ${MOZILLA_HOME}/bookmark.htm
  46.     then 
  47.         cp ${MOZILLA_HOME}/bookmark.htm ${HOME}/.netscape/bookmarks.html
  48.         chmod 644 ${HOME}/.netscape/bookmarks.html
  49.     fi
  50. fi
  51.  
  52. onetscape "$@" 0>/dev/null 1>&0 2>&0
  53.